'use strict;'
const Service = require('egg').Service;
class HomeService extends Service{
async getProb({did,start,end}){
    let sql=`SELECT * FROM promble WHERE did=${did} ORDER BY  id  DESC LIMIT ${start},${end}`
    let res=await this.app.mysql.query(sql)
    return res
    }
async getcomment({did,start,end}){
    let sql=`SELECT * FROM comment WHERE did=${did} ORDER BY  id  DESC LIMIT ${start},${end}`
    let res=await this.app.mysql.query(sql)
    return res
    }
}
module.exports = HomeService; 